package com.example.demo.service.impl;

import com.example.demo.mapper.StudentLoginMapper;
import com.example.demo.mapper.UserLoginMapper;
import com.example.demo.mapper.entity.Student;
import com.example.demo.mapper.entity.SysUserView;
import com.example.demo.mapper.entity.User;
import com.example.demo.service.UserLoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author Lucy
 * @create 2024-01-28 20:44
 */
@Service
public class UserLoginServiceImpl implements UserLoginService{

    @Autowired
    private UserLoginMapper mapper;


    @Override
    public SysUserView selectUserByName(String name) {
        return mapper.selectUserByName(name);
    }

    @Override
    public SysUserView getUserInfo(int userId) {
        return mapper.selectCurUser(userId);
    }
}
